/* styles.css */
.container {
    display: flex;
}

.sidebar {
    width: 30%;
    background-color: #f0f0f0;
    padding: 20px;
}

.chat-list {
    list-style-type: none;
    padding: 0;
}

.chat-item {
    cursor: pointer;
    padding: 10px;
    margin: 5px 0;
    background-color: #e0e0e0;
}

.chat-box {
    flex-grow: 1;
    padding: 65px;
}

#chat-messages {
    height: 400px;
    overflow-y: scroll;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

#chat-form {
    display: flex;
    margin-top: 10px;
}

#user-input {
    flex-grow: 1;
    padding: 10px;
}

/* Message Container */
.message-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

/* Avatar Styles */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

/* User Message */
.message-container.user {
    justify-content: flex-end;
}

/* Bot Message */
.message-container.bot {
    justify-content: flex-start;
}

/* Message Bubbles */
.message-bubble {
    display: inline-block;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    max-width: 70%;
    word-wrap: break-word;
    position: relative;
}

.message-bubble.user {
    background-color: #00BCD4;
    color: white;
}

.message-bubble.user::before {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px 0 5px 10px;
    border-color: transparent transparent transparent #00BCD4;
}

.message-bubble.bot {
    background-color: #F5F5F5;
    color: black;
}

.message-bubble.bot::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px 10px 5px 0;
    border-color: transparent #F5F5F5 transparent transparent;
}

.time-stamp {
    font-size: 0.8em;
    color: #888;
    text-align: center;
}


